<template>
  <div>
    <v-header>
      <v-back></v-back>
    </v-header>
    <div>
      <!-- {{ allList }} -->
      <p>订单创建时间：{{allList.addtime}}</p>
      <p>总金额：{{allList.countmoney}}</p>
      <p>总数量：{{allList.countnumber}}</p>
      <p>订单编号：{{allList.ordernumber}}</p>
      <p>用户id：{{allList.uid}}</p>
      <p> {{ allList }}</p>
    </div>
  </div>
</template>

<script>
import { getorderlist } from "@/request/api.js";
export default {
  data() {
    return {
      allList: {},
    };
  },
  async created() {
    let user = JSON.parse(localStorage.user);
    let obj = {
      uid: user.uid,
      status:0,
    };
    let getorderlistRes = await getorderlist(obj);

    this.allList = getorderlistRes.data.list.data[0];
    console.log(getorderlistRes, "123456789");
  },
};
</script>

<style>
</style>